package com.rtx.model.po.entity.system;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.model.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 系统权限信息表 (MenuPermission)实体类
 */
@ApiModel("系统权限信息表 ")
@TableName("sys_menu_permission")
public class MenuPermission extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 523166688836270780L;

    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id", position = 2)
    private Long tenantId;

    /**
     * 公司id
     */
    @ApiModelProperty(value = "公司id", position = 3)
    private Long companyId;

    /**
     * 父级菜单id
     */
    @ApiModelProperty(value = "父级菜单id", position = 4)
    private Long parentId;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号", position = 5)
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", position = 6)
    private String name;

    /**
     * 层级名称
     */
    @ApiModelProperty(value = "层级名称", position = 7)
    private String levelName;

    /**
     * url
     */
    @ApiModelProperty(value = "url地址", position = 8)
    private String url;

    /**
     * 类型(10101菜单、10102操作按钮)
     */
    @ApiModelProperty(value = "类型(10101菜单、10102操作按钮)", position = 9)
    private Integer type;

    /**
     * 排序编号
     */
    @ApiModelProperty(value = "排序编号", position = 10)
    private Integer sortNum;
    

    /**
     * 排序编号
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "排序编号", position = 11)
    private List<MenuPermission> nodes;

    /**
     * 按钮权限
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "按钮权限", position = 12)
    private List<MenuPermission> buttons;

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLevelName() {
		return levelName;
	}

	public void setLevelName(String levelName) {
		this.levelName = levelName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public List<MenuPermission> getNodes() {
		return nodes;
	}

	public void setNodes(List<MenuPermission> nodes) {
		this.nodes = nodes;
	}

	public List<MenuPermission> getButtons() {
		return buttons;
	}

	public void setButtons(List<MenuPermission> buttons) {
		this.buttons = buttons;
	}

}

